import React from 'react';
import { View, Text } from 'react-native';

const TagCloud = ({ tags }) => {
  return (
    <View style={styles.container}>
      {tags.map((tag, index) => (
        <Text key={index} style={[styles.tag, { fontSize: 12 + tag.weight }]}>
          {tag.name}
        </Text>
      ))}
    </View>
  );
};

export default TagCloud;